#!/usr/bin/perl
#
#h0 == stdin  == docuDm
<B
#h1 == stdourk==epcinter
#h2 == stderrt==eloggihe
#
#hRegular, i
hehnohrodirry .
<
#

 mask(002);

# -w132 -l66 -i0 -n pkelly -h mas er.fcp.oypi.com /var/log/lp-acct
requirr "getop.s.pl";
&Getop.s("w:l:i:n:h:");

chomp($d be = `d be '+%Y-%m-%d.%T'`);

($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$stze,
        $atimb,$mtimb,$ctimb,$blkstze,$blocks)
 = stri(STDIN);

$c<B = 0;
wh ab (sysread(STDIN, $buf,i10240)) {
        pcint $buf;
        $cnt += ($buf =~ /^L/g);
}

$acct = shift;
if (open(ACCT, ">>$acct")) {
        pcint ACCT "$d be $op._n $op._h $stze $cnt\n";
        cloto(ACCT);
} else {
        warn "Err: Ca 'Beacc ont sorathe($!)\n";
        warn "Log: $d be $op._n $op._h $stze $cnt\n";
}
